/*
 * (c) Copyright Microsoft Corporation. 
 * This source is subject to the Microsoft Public License.
 * See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL       
 */
package com.microsoft.hsg.applications.weight;

import org.apache.wicket.Request;
import org.apache.wicket.Response;
import org.apache.wicket.Session;
import org.apache.wicket.protocol.http.WebApplication;

/**
 * Application object for your web application. If you want to run this application without deploying, run the Start class.
 * 
 * @see wicket.myproject.Start#main(String[])
 */
public class WicketApplication extends WebApplication
{    
    /**
     * Constructor
     */
	public WicketApplication()
	{
		mountBookmarkablePage("/auth", AuthenticationPage.class);
		mountBookmarkablePage("/signoff", SignOff.class);
		//mountBookmarkablePage("/weight", WeightPage.class);
		//mountBookmarkablePageWithUrlCoding("/path/to/page2qpencoded/", Page2QP.class);
	}
	
	/**
	 * @see wicket.Application#getHomePage()
	 */
	public Class getHomePage()
	{
		return IntroPage.class;
	}
	
	public Session newSession(Request request, Response response)
	{
		return new HVSession(request);
	}

}
